import config from '../../utils/config';
import apiCreator from '../../utils/apiCreator';

const api = apiCreator();

export default {
  // 获取表格数据1
  queryOptionList: (query) => api.get(`${config.interfaces.type3}otcoption/queryOptionList`, query),
  // 根据bookId删除表格数据
  deleteOptionByBookId: (query) => api.get(`${config.interfaces.type5}portfolio-server/option/otc-option-book-main/deleteOptionByBookId`, query),
  // 市值上传导入
  uploadFile: (query) => api.uploadFile(`${config.interfaces.type5}portfolio-server/option/marketValue/upload`, {}, query.file),
  // 市值上传授信监控跑批
  runCreditMonitor: (query) => api.get(`${config.interfaces.type5}portfolio-server/option/marketValue/runCreditMonitor`, query),
};
